package com.fearless.crm.workbench.dao;

import com.fearless.crm.settings.entity.User;
import com.fearless.crm.workbench.entity.Activity;

import java.util.List;
import java.util.Map;

public interface ActivityDao {

    List<User> getUserListDao();

    int saveActivity(Activity activity);

    //获取市场活动信息列表，多表联查，动态sql
    List<Activity> getActivityListByCondition(Map map);

    //获取总记录条数
    int getTotalByCondition(Map map);

    int deleteByAid(String[] ids);

    Activity getById(String id);

    //修改市场活动
    int updateDao(Activity activity);

    //根据id查看详细信息页
    Activity detailDao(String id);

    List<Activity> getActivityListByClueId(String clueId);

    List<Activity> getActivityByNameAndNotConnectClueDao(Map map);

    List<Activity> queryActivityByNameDao(String name);
}
